3.1.4 \(\int -2 \, dx\) [4]

Optimal. Leaf size=3 \[ -2 x \]

[Out]

-2*x

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 3, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.000, Rules used = {8} \begin {gather*} -2 x \end {gather*}

Antiderivative was successfully verified.

[In]

Int[-2,x]

[Out]

-2*x

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin {align*} \int -2 \, dx &=-2 x\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 3, normalized size = 1.00 \begin {gather*} -2 x \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[-2,x]

[Out]

-2*x

________________________________________________________________________________________

Mathics [A]
time = 1.52, size = 3, normalized size = 1.00 \begin {gather*} -2 x \end {gather*}

Antiderivative was successfully verified.

[In]

mathics('Integrate[-2,x]')

[Out]

-2 x

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 4, normalized size = 1.33

method result size
default \(-2 x\) \(4\)
norman \(-2 x\) \(4\)
risch \(-2 x\) \(4\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-2,x,method=_RETURNVERBOSE)

[Out]

-2*x

________________________________________________________________________________________

Maxima [A]
time = 0.25, size = 3, normalized size = 1.00 \begin {gather*} -2 \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x, algorithm="maxima")

[Out]

-2*x

________________________________________________________________________________________

Fricas [A]
time = 0.30, size = 3, normalized size = 1.00 \begin {gather*} -2 \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x, algorithm="fricas")

[Out]

-2*x

________________________________________________________________________________________

Sympy [A]
time = 0.01, size = 3, normalized size = 1.00 \begin {gather*} - 2 x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x)

[Out]

-2*x

________________________________________________________________________________________

Giac [A]
time = 0.01, size = 4, normalized size = 1.33 \begin {gather*} -2 x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x)

[Out]

-2*x

________________________________________________________________________________________

Mupad [B]
time = 0.00, size = 3, normalized size = 1.00 \begin {gather*} -2\,x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-2,x)

[Out]

-2*x

________________________________________________________________________________________